package com.sysmanage.etl.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "ETL_COVERTFACTORY")
public class ETL_CovertFactory implements Serializable {
	private static final long serialVersionUID = 8938110906159337487L;

	private Integer factory_id;
	private Integer shop_id;
	private String factory_preValue;
	private String factory_behindValue;
	private ETL_Property property;
	@Id
	@GeneratedValue
	@Column(name = "FACTORY_ID")
	public Integer getFactory_id() {
		return factory_id;
	}

	public void setFactory_id(Integer factory_id) {
		this.factory_id = factory_id;
	}
	
	@Column(name = "SHOP_ID")
	public Integer getShop_id() {
		return shop_id;
	}

	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
	
	@Column(name = "FACTORY_PREVALUE")
	public String getFactory_preValue() {
		return factory_preValue;
	}

	public void setFactory_preValue(String factory_preValue) {
		this.factory_preValue = factory_preValue;
	}
	
	@Column(name = "FACTORY_BEHINDVALUE")
	public String getFactory_behindValue() {
		return factory_behindValue;
	}

	public void setFactory_behindValue(String factory_behindValue) {
		this.factory_behindValue = factory_behindValue;
	}

	@ManyToOne
	@JoinColumn(name = "PROPERTY_ID")
	public ETL_Property getProperty() {
		return property;
	}

	public void setProperty(ETL_Property property) {
		this.property = property;
	}

}
